$(function() {
	
	jiLu({
		c_user_id:CD.geturl().business	
	},function(data){
		
		for(var i=0; i<data.data.length;i++){
			var newTime = timeFormat(data.data[i].create_time);
			data.data[i].create_time = newTime;
		}
		console.log(data,99)
		
		$('.business').html(template('businessTemplate',data))
	})
})

var jiLu = function(params, callback) {
	$.ajax({
		type: "get",
		cache: false,
		traditional: true,
		dataType: "json",
		url: window.address + "/wechat/inte/getInteRecord",
		xhrFields: {
			withCredentials: true
		},
		crossDomain: true,
		data: params,
		success: function(data) {
			console.log(data);
			callback && callback(data);
		}
	});
}

